﻿using System.Collections.Generic;
using System.Reflection;
using LINQtoFxCop.Core;

namespace LINQtoFxCop.Metrics.Application
{
  public class ApplicationNbNamespaces : MetricsIntrospectionRule
  {
    protected ApplicationNbNamespaces(string name, string resourceName, Assembly assembly)
      : base(name, resourceName, assembly)
    { }
    public ApplicationNbNamespaces()
      : base("ApplicationNbNamespaces")
    { }

    protected override IEnumerable<QueryResult> Query()
    {
      yield return Result(Application, Application.NbNamespaces());
    }
  }
}
